package com.pactera.madp.cp.api.feign;

import com.pactera.madp.common.core.constant.SecurityConstants;
import com.pactera.madp.common.core.constant.ServiceNameConstants;
import com.pactera.madp.cp.api.dto.track.BehaviorTrackDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * 数据日报任务
 */
@FeignClient(contextId = "remoteTrackService",value = ServiceNameConstants.CP_SERVICE)
public interface RemoteTrackService {

    @PostMapping("/behavior-track/track/inner")
    public void handTrackInner(@RequestBody BehaviorTrackDto dto, @RequestHeader(SecurityConstants.FROM) String from);

}
